import request from '@/utils/request'

const userApi = {
    tableFinds: '/frontend/User/finds',
    userCreate: '/frontend/User/create',
    userEdit: '/frontend/User/edit'
}

export function tableFinds (parameter) {
    return request({
      url: userApi.tableFinds,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/formdata;charset=UTF-8'
      }
    })
}
export function userCreate (parameter) {
    return request({
      url: userApi.userCreate,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/formdata;charset=UTF-8'
      }
    })
}
export function userEdit (parameter) {
    return request({
      url: userApi.userEdit,
      method: 'post',
      data: parameter,
      headers: {
        'Content-Type': 'application/formdata;charset=UTF-8'
      }
    })
}
